package com.ht.module.bus.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.ht.config.dataAuth.DataScope;
import com.ht.module.bus.entity.TSchool;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ht.module.bus.vo.SchoolTripVo;
import com.ht.module.bus.vo.StationToNumberVo;
import com.ht.util.Pager;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 学校信息表 Mapper 接口
 * </p>
 *
 * @author hejialun
 * @since 2024-07-29
 */
public interface TSchoolMapper extends BaseMapper<TSchool> {

    List<SchoolTripVo> findTripList(@Param(Constants.WRAPPER) QueryWrapper<TSchool> qw);

    Pager<TSchool> findPageAuth(Pager<TSchool> pager,@Param(Constants.WRAPPER) QueryWrapper<TSchool> qw, DataScope dataScope);

    List<TSchool> findListAuth(@Param(Constants.WRAPPER)QueryWrapper<TSchool> qw, DataScope dataScope);

    Pager<StationToNumberVo> findStationToNumber(Pager<StationToNumberVo> pager,@Param(Constants.WRAPPER) QueryWrapper<TSchool> qw);
}
